Skip to content

Conversation

@swalker326
Copy link

Add D1Storage adapter enabling OpenAuth to use Cloudflare's D1 serverless SQL database for storage.

Features:

  • Automatic table creation and indexing
  • TTL/expiry support with filtering on read
  • Efficient prefix-based scanning
  • Cleanup utility for expired entries

Add D1Storage adapter enabling OpenAuth to use Cloudflare's D1
serverless SQL database for storage. This enables true data isolation
for multi-tenant architectures where each tenant can have their own
isolated D1 database (up to 50k databases per account).

Features:
- Automatic table creation and indexing
- TTL/expiry support with filtering on read
- Efficient prefix-based scanning
- Cleanup utility for expired entries

Use case: Multi-tenant auth platforms can give each tenant their own
isolated D1 database for complete data separation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant